cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(example)

set(Torch_DIR /home/coshe/下载/libtorch/share/cmake/Torch)

find_package(Torch REQUIRED)


# message(STATUS "Pytorch status:")
# message(STATUS "    libraries: ${TORCH_LIBRARIES}")


# message(STATUS "OpenCV library status:")




add_executable(example example-app.cpp)

target_link_libraries(example ${TORCH_LIBRARIES})
set_property(TARGET example PROPERTY CXX_STANDARD 14)

